# -*- coding:utf-8 -*-
# @Time: 2020/8/24 17:40
# @Author: liupengfei
# @File: urls.py

from django.urls import path
from rest_framework.routers import SimpleRouter
from .views import UploadView, OptionViewSet, MenuView, CreateCeleryTask, GetCeleryTask, UploadEditorImageView

urlpatterns = [
    path('upload/', UploadView.as_view()),
    path('editor_image_upload/', UploadEditorImageView.as_view()),  # 富文本图片上传
    path('menu/', MenuView.as_view()),
    # celery测试
    path('create_task/', CreateCeleryTask.as_view()),
    path('get_task/', GetCeleryTask.as_view())
]

router = SimpleRouter()
router.register('option', OptionViewSet)
urlpatterns += router.urls
